<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>会员登录</title>
<% int i = 0 ;%>
 <script type="text/javascript">
 	
 window.onload= function(){
	 document.getElementById("img1").onclick = function(){
		 this.src="${pageContext.request.contextPath}/CheckImgServlet?time="+new Date().getTime();
	 }
 }


 </script>
</head>
<body>
		<h3 style="text-align: center;">黑马书籍商城--会员登录</h3>
		<hr />
		<p style="text-align:center;font-size:20px;color:red">
			<s:property value="msg"/>
			<%-- <%  if(request.getAttribute("msg") != null){ %>
				<%=request.getAttribute("msg")%>
			<% 
			}%> --%>
		</p>
		<form action="${pageContext.request.contextPath}/login" method="post">
			<table border="1" align="center" align="center">
				<tr>
					<td>用户名</td>
					<td><input type="text" name="username" /></td>
				</tr>
				<tr>
					<td>密码</td>
					<td><input type="password"  name="password"/></td>
				</tr>
				<tr>
					<td colspan="2">
						<input type="submit" value="登录" />
						<input type="button" value="test" onclick="test()" />
					</td>	
				</tr>
			</table>
		</form>
</body>
</html>